<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>条件渲染</title>
</head>
<body>
  <div id="app">
    <input type="number" name="" v-model="ach" id="">
    <input type="button" value="点击" @click="admin=!admin">
    <p v-if="ach>=90">考得很好</p>
    <p v-else-if="ach>=80">考得不错</p>
    <p v-else-if="ach>=70">考得还行</p>
    <p v-else-if="ach>=60">惊险过关</p>
    <p v-else>准备补考</p>
    <p v-if="admin">系统管理</p>
    <p v-show="admin">显示系统管理</p>
  </div>
  <script src="vue.js"></script>
  <script>
    const vm = new Vue({
      el:"#app",
      data:{
        ach:80,
        admin:true
      }
    })
  </script>
</body>
</html>